package com.lanou3g.code0409.common;

import java.util.Scanner;

public class RepeatTest {
    public static void main(String[] args) {
        //用户输入两次密码 判断是否一致
        System.out.println("请输入密码:");
        Scanner scanner = new Scanner(System.in);
        String pwd = scanner.nextLine();
        System.out.println("请输入密码:");
        String pwd2 = scanner.nextLine();

        if (pwd.equals(pwd2)) {//equals 等于 平等
            System.out.println("密码一致");
        } else {
            System.out.println("密码不一致");
        }
    }
}
